package com.spring;

import com.spring.model.Hero;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author: sun.hongliang
 * @create: 2018/09/30 15:17
 */
public class Main {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
        Hero hero = (Hero) applicationContext.getBean("hhh");
        System.out.println(hero);
    }
}
